#======================================================================
# Product:      KnowledgeEngine (Plone Version)
#
# File:         __init__.py
#
# Copyright:    Copyright (c) 2006, Faulkner Technologies
#
# Author:       John Meredith
#
# Description:  
#======================================================================

#======================================================================
# Python libraries
#----------------------------------------------------------------------
import logging
log = logging.getLogger("KnowledgeEngine.Startup")

#======================================================================
# Blog client registration
#----------------------------------------------------------------------
_BLOG_CLIENTS = {}
def registerBlogClient(clazz):
    """
        Registers a blog client into the set
    """

    name = clazz.TITLE
    
    log.info("Registering Action: BlogPost [Registering blog client: %s]" % name)
    _BLOG_CLIENTS[name] = clazz


def getBlogClients():
    """
        Return a list of registered blog clients available to the action
    """

    return _BLOG_CLIENTS


#======================================================================
# Blog client registration (should really do this dynamically)
#----------------------------------------------------------------------
from AtomAPI import *
from B2Evolution import *
from BloggerAPI import *
from Wordpress import *

#======================================================================
# The following APIs are incomplete and/or untested
#----------------------------------------------------------------------
# from metaWeblogAPI import *
# from MoveableTypeAPI import *
